import request from '@/sheep/request';

const BannerApi = {
  // 获取banner列表，通过位置获取
  getBannerListByPosition: (position) => {
    return request({
      url: '/promotion/banner/list',
      method: 'GET',
      params: {
        position,
      },
    });
  },
  // 点击数据
  addBrowseCount: (id) => {
    return request({
      url: '/promotion/banner/add-browse-count',
      method: 'PUT',
      params: {
        id,
      },
    });
  },
  
  
};

export default BannerApi;
